[MUSIC] Hello and welcome to this demonstration on
using the read range activity in studio. To read the data from a workbook and
print it in the output panel. [MUSIC] In this video,
you will learn to create a workflow that manipulates 10 students
age to get their year of birth. So let's begin.
Open a new Excel file, and create a column called student age. Enter the age of 10 Students. Save and close the file. Now go to Ui path studio, and search for a read range activity under the workbook category in the activities panel, and drag and drop in the designer panel. Rename the sequence as workbook automation [MUSIC] And add an annotation to it. [MUSIC] Also, rename the read range activity. [MUSIC] Click the folder icon and
select the Excel file just created. Click open. [MUSIC] Remove the default entry
in the range text box. Navigate to the Properties panel
of the read range activity. And in the data table property press
CTRL + K to create a new variable and name it as dt underscore student age. [MUSIC] Search for an add data column activity. [MUSIC] And drag and drop it below the read
range activity, rename it. [MUSIC] Navigate to its Properties panel, and enter year of birth in double quotes
in the column named property. In the data table property, enter the variable dt
underscore student age. Search for a four each row and
data table activity. And drag and drop it below the add
data column activity, and rename it. [MUSIC] In the VB expression text box,
enter dt underscore student age. [MUSIC] Search for an assigned activity,
and drag and drop it in the body section of the four
each row activity and rename it. [MUSIC] In the first text box, enter current
row then one inside parenthesis. [MUSIC] Navigate to the properties panel,
click the ellipsis icon of the value property to
open the expression editor, enter the expression
date.today.year parenthesis, then enter minus, and then C int and
start parenthesis CurrentRow. Then again start parenthesis and 0. Click OK. Search for an output data table activity [MUSIC] And drag and
drop it below the four each row activity. [MUSIC] And rename it. [MUSIC] Navigate to its properties panel and enter dt underscore student age
in the data table property. In the output property, press CTRL + K to create a new
variable and name it as age output. [MUSIC] Search for a right line activity,
and dragon drop it below the output data table activity,
and rename it. [MUSIC] Enter age output in the text box. [MUSIC] Save the project and run it. [MUSIC] Now go to the output
panel to see the output. [MUSIC] The year of birth of all students is
listed adjacent to their respective ages. Hence, the workflow ran successfully. It is encouraged to create the workflow
as demonstrated and try this activity. Thank you for watching. [MUSIC]